package com.starry.androidmvvmexample


import androidx.navigation.findNavController
import androidx.navigation.ui.setupWithNavController
import com.starry.androidmvvmexample.base.BaseVMActivity
import com.starry.androidmvvmexample.databinding.ActivityMainBinding
import com.starry.androidmvvmexample.vm.MainViewModel

class MainActivity : BaseVMActivity<ActivityMainBinding, MainViewModel>(
    MainViewModel::class.java,
    ActivityMainBinding::inflate
) {
    override fun initVariableId() = BR.viewModel

    override fun initView() {
        super.initView()
        mBinding.navView.setupWithNavController(findNavController(R.id.nav_host_fragment_activity_main))
    }

    override fun initViewObservable() {

    }
}